<?php

namespace App\Http\Controllers;

use App\Model\Account;

class AccountController
{

    public function store()
    {
        $account = new Account();

        $account->user_id = 1000001;
        $account->account_type = 1;
        $account->amount = 100;
        $account->created_at = date('Y-m-d H:i:s');

        $account->save();

        return $account->id;
    }

}
